﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Oliving.Edge.Model.Models.SystemBase
{
    [SugarTable("Sys_File")]
    [Serializable]
    public class SysFile
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
        public int ID { get; set; }


        /// <summary>
        /// 相对路径
        /// </summary>
        [SugarColumn(ColumnName = "RelativePath", IsNullable = true, Length = 5000, ColumnDataType = "nvarchar")]
        public string RelativePath { get; set; }


        /// <summary>
        /// 绝对路径 
        /// </summary>
        [SugarColumn(ColumnName = "AbsolutePath", IsNullable = true, Length = 5000, ColumnDataType = "nvarchar")]
        public string AbsolutePath { get; set; }


        [SugarColumn(ColumnName = "CreateTime", IsNullable = false)]
        public DateTime CreateTime { get; set; } = DateTime.Now;


        [SugarColumn(ColumnName = "FileSize", IsNullable = false)]
        public int FileSize { get; set; }

    }
}
